﻿//namespace SolidMvvm {
//	using System;
//	using System.IO;
//	using System.Xml.Serialization;

//	[Serializable]
//	public class SerializableBase<T> {
//		public static T Deserialize(string pathAndFilename) {
//			var serializer = new XmlSerializer(typeof(T));

//			using (var reader = new StreamReader(pathAndFilename))
//				return (T)serializer.Deserialize(reader);
//		}

//		public void Serialize(string pathAndFilenameAndExtension) {
//			using (var streamWriter = new StreamWriter(pathAndFilenameAndExtension, false))
//				new XmlSerializer(typeof(T)).Serialize(streamWriter, this);
//		}
//	}
//}
